Repository navigation
Fix signatures of Accept, Decline and TentativelyAccept actions - #53
Merged
Merged
Conversation
added 5 commits
January 15, 2021 12:13
Nikitha Chettiar (nikithauc)
approved these changes
Jan 16, 2021
Vincent Biret (baywet)
approved these changes
Jan 18, 2021
Vincent Biret (baywet)
left a comment
Member
There was a problem hiding this comment.
Mustafa Zengin (@zengin) this is why this thing was always complaining! Thanks for looking into it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previous XSLT rule was replacing accept, decline and tentativelyAccept actions with a parameter reordering. The reason for the rule was to keep the code backwards compatible.
Our long term solution should be to have a parameters object which can extend freely with nullable properties.
The change I propose in this PR is changing the "replace" rule with an "add" rule, which adds the backwards compatible signature. Since I remove the replace rule, the original signatures from metadata gets copied as is.
See type summary comparisons between the following two files.
typeSummary_accept_decline_base.txt
typeSummary_accept_decline_new.txt
Old state:
Through backwards compatible "replace" rules from XSLT
No compatible signatures with the actual metadata and docs
New state:
Through backwards compatible "add" rules from XSLT
By keeping signatures from original metadata
I have updated the test input XML file to match the actual metadata and updated output XML by running the new transform.
Fixes #21
Fixes 3 C# Beta and 3 C# V1 Raptor tests. Vincent Biret (@baywet), I think this will fix some Java tests too.